package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.WorkOrderRejectionInfo;
import cn.com.nes.site.service.workOrder.bo.GetWorkOrderRejectionInfoBO;
import cn.com.nes.site.service.workOrder.dto.WorkOrderRejectionInfoDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 工单拒单记录 Mapper
 *
 * @Author: ShenWei
 * @Date: 2024/09/04/9:32
 */
public interface WorkOrderRejectionInfoMapper extends BaseMapper<WorkOrderRejectionInfo> {

    List<WorkOrderRejectionInfoDTO> getWorkOrderRejectionInfoPage(@Param("page") Page<WorkOrderRejectionInfoDTO> page, @Param("bo") GetWorkOrderRejectionInfoBO bo);

    List<Map<String, Long>> queryRejectionCountMap(@Param("workOrderIdSet") Set<Long> workOrderIdSet);
}
